<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="common/header.jsp"%>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap"  style="background-color:white;">

					<div class="user-info" style="margin:30px;">
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">个人资料</strong> / <small>Personal&nbsp;information</small></div>
						</div>
						<hr/><br/>
						
						<form action="${pageContext.request.contextPath }/user/modifyinfo" method="post" id="perInfoForm">
						<div>
						用户账号: &nbsp; <input type="hidden" name="userCode" value="${userSession.userCode}" readonly="readonly"/>${userSession.userCode}
						<input type="hidden" name="password" value="${userSession.password}"/>
						</div>
						<br/>
							<div>用户名称: &nbsp; <input type="text" name="userName" value="${userSession.userName}" id="userName"/></div><br/>
							<div>性别: &nbsp; 
							
									<c:if test="${userSession.sex==1}">男</c:if>
									<c:if test="${userSession.sex==2}">女</c:if>
									<c:if test="${userSession.sex==3}">保密</c:if>
									</div><br/>
							
							<div>
			                    <label for="birthday">生日:</label>
			                    <input type="text" Class="Wdate" id="birthday" name="birth"  value='<fmt:formatDate value="${userSession.birth}"/>'
								readonly="readonly" onclick="WdatePicker();">
		                	</div><br/>
		                	<div>
		                		电话: &nbsp;<input type="text" name="userPhone" id="userPhone" value="${userSession.userPhone}"/>
		                	</div><br/>
		                	<div>
		                		电子邮件: &nbsp; <input type="text" name="userEmail" id="userEmail" value="${userSession.userEmail}"/>
		                	</div><br/>
		                	
		                	<button class="btn btn-danger" id="submit" name="submit">提交</button>
		                	<div>${error}</div>
						</form>
						
					</div>

				</div>
				</div>
				<script type="text/javascript">
				$("#userPhone").on("blur",function(){
				
				});
				
					$("#submit").on("click",function(){
						$("#perInfoForm").submit();
					});
				</script>
				
<%@include file="common/footer.jsp"%>
</div>
  </body>
</html>
